package com.example.chengche_lol.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.chengche_lol.R;
import com.example.chengche_lol.beans.FriendBean;

public class FriendAdapter extends BaseQuickAdapter<FriendBean, BaseViewHolder> {


    public FriendAdapter() {
        super(R.layout.item_friend);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, FriendBean friendBean) {
        baseViewHolder.setImageResource(R.id.frd_head_avatar,friendBean.getFrd_head_avatar());
        baseViewHolder.setText(R.id.frd_name,friendBean.getFrd_name());
        baseViewHolder.setText(R.id.frd_school,friendBean.getFrd_school());
        baseViewHolder.setText(R.id.frd_signs,friendBean.getFrd_signs());
        baseViewHolder.setText(R.id.frd_sex,friendBean.getFrd_sex());
        baseViewHolder.setText(R.id.frd_level,friendBean.getFrd_level());
        baseViewHolder.setText(R.id.frd_tag,friendBean.getFrd_tag());
        baseViewHolder.setImageResource(R.id.frd_online_icon,friendBean.getFrd_online_icon());
        baseViewHolder.setText(R.id.frd_online_txt,friendBean.getFrd_online_txt());
    }
}
